//创建构造函数
function Remove(num){
    this.num=num
}
let proto=Remove.prototype
console.log(proto);
proto.removes=function(){
    let arr1=this.num
    let arr2=[]
for(let i=0;i<arr1.length;i++){
    if(arr2.indexOf(arr1[i])===-1){
        arr2.push(arr1[i])
    }
}
return arr2
}

//创建对象
let arr=new Remove([5,4,26,9,4,8,5,14])
console.log(arr.removes());